package com.csf.project.service;

import java.sql.SQLException;
import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csf.project.entity.User;
import com.csf.project.msg.ObjectRestResponse;

public interface UserService {

    User findUser(User user);

    void loginSuccess(String loginName);

    User getCurrentUser();

    List<User> getAllUser(User user,  Page<User> page);

    Integer countUser(User user);

	ObjectRestResponse<Object> queryData(User user);

	//查询用户点数
    String queryUserPoint(Integer num,String account);

	//注册接口
    Boolean register(User user);

    //修改用户信息
    Boolean updateUserInfo(User user);

    //查询游戏用户点数&&更新用户点数
    String updataPoint(Integer num,String account,Integer point);

    //获取redis生成随机验证码发送到邮箱
    Boolean getRandCode(String mail);

    //检测用户账号是否存在
    Boolean checkAccount(String account);

    User getUserInfo(String token);
}
